package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HSpot;
import com.flea.hclv.model.entity.HlineSpotRelation;
import com.flea.hclv.model.entity.vo.LineSpotRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HlineSpotRelationMapper {

	int delete(@Param("ids") List<String> ids);

	int deleteByLineId(@Param("lineId")String lineId);
	int deleteByLineIds(@Param("ids") List<String> ids);

	int insert(@Param("entities") List<HlineSpotRelation> entities);

	List<LineSpotRelation> selectByLineId(@Param("lineId") String lineId);

	List<LineSpotRelation> selectBySpotId(@Param("spotId") String spotId);
	/**
	 * 根据spots，获取所有的线路
	 * @description
	 * @methodName selectBySpotId
	 * @param
	 * @returnType List<HlineSpotRelation>   
	 * @throw
	 */
	List<HlineSpotRelation> selectBySpots(@Param("spots")List<HSpot> spots);

	int deleteByOneLineId(String lineId);

	List<LineSpotRelation> selectByLineId2(String lineId);

//    int insertSelective(HlineSpotRelation record);

//    HlineSpotRelation selectByPrimaryKey(String id);

//    int updateByPrimaryKeySelective(HlineSpotRelation record);

//    int updateByPrimaryKey(HlineSpotRelation record);
}